<?php

header("Content-Type: text/html; charset=utf-8");
require_once("../../core/cfg.php");
require_once("../../core/functions.php");

$ex = explode("_", $_POST["m_param"]);
$ob_left_menu_catalog = new catalog_tree($_POST["table"]);
$ob_left_menu_catalog->registry_parent_id($_POST["parent"]);
$ob_left_menu_catalog->m_param_id     = $ex[0]; 
$ob_left_menu_catalog->m_param_parent = $ex[1]; 
$out["LEFT_MENU_CATALOG"] = $ob_left_menu_catalog->getMenu($_POST["parent"], $_POST["iterator"], $_POST["parent"]);

Registry::get("smarty")->assign($out);
exit(Registry::get("smarty")->fetch(TEMPLATE_ADMIN."left_menu_catalog.tpl", Registry::get("cache_id")));

?>